package com.supermarket.manage.business.cloud.dto;

import com.supermarket.manage.common.validation.CodeModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Faxon
 * @version 1.0
 * @date 2020-03-11 19:12
 **/
@Data
@ApiModel("CodeParams:发送验证码 数据对象")
public class CodeParams implements Serializable {

    private static final long serialVersionUID = 1285649979294876339L;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "页码")
    @NotNull(message = "页码不能为空")
    private String phoneNumber;

    /**
     * 模板id
     */
    @ApiModelProperty(value = "模板id")
    @NotNull(message = "模板id不能为空")
    @CodeModel(message = "模板id错误，请参见Common工程中com.supermarket.manage.common.validation.CodeModelValidator")
    private String modelId;
}
